<script setup>
import Banner from '@/components/Banner.vue';

import { onMounted, ref } from 'vue';
import { getBannerAPI } from '@/apis/home';
const homeBanner = ref([]);
onMounted(() => {
	(async () => {
		const res = await getBannerAPI().then(res => res.data);
		homeBanner.value = res.result;
	})()
});

</script>

<template>
	<Banner :bannerData="homeBanner" />
</template>

<style scoped lang="scss"></style>